<?php
class Application_Form_EditFlowerDetail extends Zend_Form
{

	public function init()
	{
		$this->setName('editflowerdetail');
		$tengiohoa = new Zend_Form_Element_Text('tengiohoa');
		$tengiohoa->setLabel('Tên giỏ hoa :')
		->setAttrib('readonly', true)
		->setAttrib('class', 'readonly')
		->setRequired(true);
		
		$tenhoa = new Zend_Form_Element_Text('tenhoa');
		$tenhoa->setLabel('Tên hoa :')
		->setAttrib('readonly', true)
		->setAttrib('class', 'readonly')
		->setRequired(true);
		

		$slhoa = new Zend_Form_Element_Text('slhoa');
		$slhoa->setLabel('Số lượng hoa :')
		->setRequired(true)
		->addFilter('Int')
		->addValidator('Digits');
		
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton');
		
		$reset=new Zend_Form_Element_Reset('reset');

		$this->addElements(array($tengiohoa, $tenhoa,$slhoa,$reset,$submit));
	}
	
	public function settengiohoa_tenhoa($ten_giohoa,$ten_hoa){
		$this->getElement('tengiohoa')->setValue($ten_giohoa);
		$this->getElement('tenhoa')->setValue($ten_hoa);
	}
}